package com.refactor.practice.movie;

/**
 * @Desc: 最新发布类型
 * @Author: zoupinluowei@qianxin.com
 * @Date: 2024/9/6 21:49
 * @Since: 2.2.0
 */
public class NewReleaseMovieType extends AbstractMovieType {
    /**
     * 魔法值问题缺少具体的业务含义，暂保留
     */

    @Override
    public double getAmount(int dayRented) {
        return dayRented * 3;
    }

    @Override
    public int getPoints(int dayRented) {
        return dayRented > 1 ? 2 : 1;
    }
}
